package  
{
	import flash.events.MouseEvent;
	import org.flixel.*;
	
	/**
	 * ...
	 * @author Kyl
	 */
	public class FlxIdxBtn extends FlxButton 
	{
		private var cbParam:Object;
		
		public function FlxIdxBtn(X:Number=0, Y:Number=0, Label:String=null, OnClick:Function=null, CallbackParam:Object=null) 
		{
			super(X, Y, Label, OnClick);
			cbParam = CallbackParam;
			super.frameWidth = 200;
			super.frameHeight = 100;
		}
		
		override protected function onMouseUp(event:MouseEvent): void
		{
			if(!exists || !visible || !active || (status != PRESSED))
				return;
			
			onUp(cbParam);
		}
		
	}

}